package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Result;
import com.itheima.pojo.User;
import jakarta.servlet.http.HttpServletRequest;

import java.util.Map;

public interface UserService extends IService<User> {
    Result<String> register(String username, String password);

    Result login(String username, String password);

    Result userInfo(HttpServletRequest request);

    Result updatePwd(Map<String, String> params, String token);

    Result updateAvatar(String avatarUrl, HttpServletRequest request);
}
